﻿<template>
  <a-modal
    :title="title"
    width="40%"
    :visible="visible"
    :confirmLoading="loading"
    @ok="handleSubmit"
    @cancel="()=>{this.visible=false}"
  >
    <a-spin :spinning="loading">
      <a-form-model ref="form" :model="entity" :rules="rules" v-bind="layout">
        <a-form-model-item label="收发记录子表标识" prop="AutoID">
          <a-input v-model="entity.AutoID" autocomplete="off" placeholder="收发记录子表标识" />
        </a-form-model-item>
        <a-form-model-item label="收发记录主表标识" prop="ID">
          <a-input v-model="entity.ID" autocomplete="off" placeholder="收发记录主表标识" />
        </a-form-model-item>
       
        <a-form-model-item label="计划价或售价" prop="iPUnitCost">
          <a-input v-model="entity.iPUnitCost" autocomplete="off" placeholder="计划价或售价" />
        </a-form-model-item>
        <a-form-model-item label="计划金额或售价金额" prop="iPPrice">
          <a-input v-model="entity.iPPrice" autocomplete="off" placeholder="计划金额或售价金额" />
        </a-form-model-item>
        <a-form-model-item label="批号" prop="cBatch">
          <a-input v-model="entity.cBatch" autocomplete="off" placeholder="批号" />
        </a-form-model-item>
        <a-form-model-item label="对应入库单子表标识" prop="cVouchCode">
          <a-input v-model="entity.cVouchCode" autocomplete="off" placeholder="对应入库单子表标识" />
        </a-form-model-item>
        <a-form-model-item label="对应入库单号" prop="cInVouchCode">
          <a-input v-model="entity.cInVouchCode" autocomplete="off" placeholder="对应入库单号" />
        </a-form-model-item>
        <a-form-model-item label="入库单单类型" prop="cinvouchtype">
          <a-input v-model="entity.cinvouchtype" autocomplete="off" placeholder="入库单单类型" />
        </a-form-model-item>
        <a-form-model-item label="累计出库数量" prop="iSOutQuantity">
          <a-input v-model="entity.iSOutQuantity" autocomplete="off" placeholder="累计出库数量" />
        </a-form-model-item>
        <a-form-model-item label="累计出库辅计量数量" prop="iSOutNum">
          <a-input v-model="entity.iSOutNum" autocomplete="off" placeholder="累计出库辅计量数量" />
        </a-form-model-item>
        <a-form-model-item label="出库单id" prop="coutvouchid">
          <a-input v-model="entity.coutvouchid" autocomplete="off" placeholder="出库单id" />
        </a-form-model-item>
        <a-form-model-item label="出库单类型" prop="coutvouchtype">
          <a-input v-model="entity.coutvouchtype" autocomplete="off" placeholder="出库单类型" />
        </a-form-model-item>
        <a-form-model-item label="累计退货数量" prop="iSRedOutQuantity">
          <a-input v-model="entity.iSRedOutQuantity" autocomplete="off" placeholder="累计退货数量" />
        </a-form-model-item>
        <a-form-model-item label="累计退货件数" prop="iSRedOutNum">
          <a-input v-model="entity.iSRedOutNum" autocomplete="off" placeholder="累计退货件数" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项1" prop="cFree1">
          <a-input v-model="entity.cFree1" autocomplete="off" placeholder="存货自由项1" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项2" prop="cFree2">
          <a-input v-model="entity.cFree2" autocomplete="off" placeholder="存货自由项2" />
        </a-form-model-item>
        <a-form-model-item label="标志" prop="iFlag">
          <a-input v-model="entity.iFlag" autocomplete="off" placeholder="标志" />
        </a-form-model-item>
        <a-form-model-item label="实际辅计量数量" prop="iFNum">
          <a-input v-model="entity.iFNum" autocomplete="off" placeholder="实际辅计量数量" />
        </a-form-model-item>
        <a-form-model-item label="实际数量" prop="iFQuantity">
          <a-input v-model="entity.iFQuantity" autocomplete="off" placeholder="实际数量" />
        </a-form-model-item>
        <a-form-model-item label="失效日期" prop="dVDate">
          <a-input v-model="entity.dVDate" autocomplete="off" placeholder="失效日期" />
        </a-form-model-item>
        <a-form-model-item label="货位编码" prop="cPosition">
          <a-input v-model="entity.cPosition" autocomplete="off" placeholder="货位编码" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项22" prop="cDefine22">
          <a-input v-model="entity.cDefine22" autocomplete="off" placeholder="表体自定义项22" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项23" prop="cDefine23">
          <a-input v-model="entity.cDefine23" autocomplete="off" placeholder="表体自定义项23" />
        </a-form-model-item>
       
        <a-form-model-item label="项目大类编码" prop="cItem_class">
          <a-input v-model="entity.cItem_class" autocomplete="off" placeholder="项目大类编码" />
        </a-form-model-item>
        <a-form-model-item label="项目编码" prop="cItemCode">
          <a-input v-model="entity.cItemCode" autocomplete="off" placeholder="项目编码" />
        </a-form-model-item>
        <a-form-model-item label="发货退货单子表标识" prop="iDLsID">
          <a-input v-model="entity.iDLsID" autocomplete="off" placeholder="发货退货单子表标识" />
        </a-form-model-item>
        <a-form-model-item label="发票子表标识" prop="iSBsID">
          <a-input v-model="entity.iSBsID" autocomplete="off" placeholder="发票子表标识" />
        </a-form-model-item>
        <a-form-model-item label="本次发货数量" prop="iSendQuantity">
          <a-input v-model="entity.iSendQuantity" autocomplete="off" placeholder="本次发货数量" />
        </a-form-model-item>
        <a-form-model-item label="本次发货辅计量数量" prop="iSendNum">
          <a-input v-model="entity.iSendNum" autocomplete="off" placeholder="本次发货辅计量数量" />
        </a-form-model-item>
        <a-form-model-item label="委托代销发货单子表标识" prop="iEnsID">
          <a-input v-model="entity.iEnsID" autocomplete="off" placeholder="委托代销发货单子表标识" />
        </a-form-model-item>
        <a-form-model-item label="项目名称" prop="cName">
          <a-input v-model="entity.cName" autocomplete="off" placeholder="项目名称" />
        </a-form-model-item>
        <a-form-model-item label="项目大类名称" prop="cItemCName">
          <a-input v-model="entity.cItemCName" autocomplete="off" placeholder="项目大类名称" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项3" prop="cFree3">
          <a-input v-model="entity.cFree3" autocomplete="off" placeholder="存货自由项3" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项4" prop="cFree4">
          <a-input v-model="entity.cFree4" autocomplete="off" placeholder="存货自由项4" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项5" prop="cFree5">
          <a-input v-model="entity.cFree5" autocomplete="off" placeholder="存货自由项5" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项6" prop="cFree6">
          <a-input v-model="entity.cFree6" autocomplete="off" placeholder="存货自由项6" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项7" prop="cFree7">
          <a-input v-model="entity.cFree7" autocomplete="off" placeholder="存货自由项7" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项8" prop="cFree8">
          <a-input v-model="entity.cFree8" autocomplete="off" placeholder="存货自由项8" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项9" prop="cFree9">
          <a-input v-model="entity.cFree9" autocomplete="off" placeholder="存货自由项9" />
        </a-form-model-item>
        <a-form-model-item label="存货自由项10" prop="cFree10">
          <a-input v-model="entity.cFree10" autocomplete="off" placeholder="存货自由项10" />
        </a-form-model-item>
        <a-form-model-item label="对应条形码编码" prop="cBarCode">
          <a-input v-model="entity.cBarCode" autocomplete="off" placeholder="对应条形码编码" />
        </a-form-model-item>
        <a-form-model-item label="应收应发数量" prop="iNQuantity">
          <a-input v-model="entity.iNQuantity" autocomplete="off" placeholder="应收应发数量" />
        </a-form-model-item>
        <a-form-model-item label="应收应发辅计量数量" prop="iNNum">
          <a-input v-model="entity.iNNum" autocomplete="off" placeholder="应收应发辅计量数量" />
        </a-form-model-item>
        <a-form-model-item label="辅计量单位编码" prop="cAssUnit">
          <a-input v-model="entity.cAssUnit" autocomplete="off" placeholder="辅计量单位编码" />
        </a-form-model-item>
        <a-form-model-item label="dMadeDate" prop="dMadeDate">
          <a-input v-model="entity.dMadeDate" autocomplete="off" placeholder="dMadeDate" />
        </a-form-model-item>
        <a-form-model-item label="保质期天数" prop="iMassDate">
          <a-input v-model="entity.iMassDate" autocomplete="off" placeholder="保质期天数" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项28" prop="cDefine28">
          <a-input v-model="entity.cDefine28" autocomplete="off" placeholder="表体自定义项28" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项29" prop="cDefine29">
          <a-input v-model="entity.cDefine29" autocomplete="off" placeholder="表体自定义项29" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项30" prop="cDefine30">
          <a-input v-model="entity.cDefine30" autocomplete="off" placeholder="表体自定义项30" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项31" prop="cDefine31">
          <a-input v-model="entity.cDefine31" autocomplete="off" placeholder="表体自定义项31" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项32" prop="cDefine32">
          <a-input v-model="entity.cDefine32" autocomplete="off" placeholder="表体自定义项32" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项33" prop="cDefine33">
          <a-input v-model="entity.cDefine33" autocomplete="off" placeholder="表体自定义项33" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项34" prop="cDefine34">
          <a-input v-model="entity.cDefine34" autocomplete="off" placeholder="表体自定义项34" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项35" prop="cDefine35">
          <a-input v-model="entity.cDefine35" autocomplete="off" placeholder="表体自定义项35" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项36" prop="cDefine36">
          <a-input v-model="entity.cDefine36" autocomplete="off" placeholder="表体自定义项36" />
        </a-form-model-item>
        <a-form-model-item label="表体自定义项37" prop="cDefine37">
          <a-input v-model="entity.cDefine37" autocomplete="off" placeholder="表体自定义项37" />
        </a-form-model-item>
        <a-form-model-item label="检验单子表标识" prop="iCheckIds">
          <a-input v-model="entity.iCheckIds" autocomplete="off" placeholder="检验单子表标识" />
        </a-form-model-item>
        <a-form-model-item label="供应商编码" prop="cBVencode">
          <a-input v-model="entity.cBVencode" autocomplete="off" placeholder="供应商编码" />
        </a-form-model-item>
        <a-form-model-item label="是否质检" prop="bGsp">
          <a-input v-model="entity.bGsp" autocomplete="off" placeholder="是否质检" />
        </a-form-model-item>
        <a-form-model-item label="质检状态" prop="cGspState">
          <a-input v-model="entity.cGspState" autocomplete="off" placeholder="质检状态" />
        </a-form-model-item>
        <a-form-model-item label="检验单号" prop="cCheckCode">
          <a-input v-model="entity.cCheckCode" autocomplete="off" placeholder="检验单号" />
        </a-form-model-item>
        <a-form-model-item label="检验单子表ID" prop="iCheckIdBaks">
          <a-input v-model="entity.iCheckIdBaks" autocomplete="off" placeholder="检验单子表ID" />
        </a-form-model-item>
        <a-form-model-item label="不良品处理单号" prop="cRejectCode">
          <a-input v-model="entity.cRejectCode" autocomplete="off" placeholder="不良品处理单号" />
        </a-form-model-item>
        <a-form-model-item label="不良品处理单ID" prop="iRejectIds">
          <a-input v-model="entity.iRejectIds" autocomplete="off" placeholder="不良品处理单ID" />
        </a-form-model-item>
        <a-form-model-item label="检验员" prop="cCheckPersonCode">
          <a-input v-model="entity.cCheckPersonCode" autocomplete="off" placeholder="检验员" />
        </a-form-model-item>
        <a-form-model-item label="检验日期" prop="dCheckDate">
          <a-input v-model="entity.dCheckDate" autocomplete="off" placeholder="检验日期" />
        </a-form-model-item>
        <a-form-model-item label="保质期单位" prop="cMassUnit">
          <a-input v-model="entity.cMassUnit" autocomplete="off" placeholder="保质期单位" />
        </a-form-model-item>
        <a-form-model-item label="是否已经生成退货报检单1：生成,0:没有生成" prop="iRefundInspectFlag">
          <a-input v-model="entity.iRefundInspectFlag" autocomplete="off" placeholder="是否已经生成退货报检单1：生成,0:没有生成" />
        </a-form-model-item>
        <a-form-model-item label="合同标标识" prop="strContractId">
          <a-input v-model="entity.strContractId" autocomplete="off" placeholder="合同标标识" />
        </a-form-model-item>
        <a-form-model-item label="合同号" prop="strCode">
          <a-input v-model="entity.strCode" autocomplete="off" placeholder="合同号" />
        </a-form-model-item>
        <a-form-model-item label="销售出库单是否报检" prop="bChecked">
          <a-input v-model="entity.bChecked" autocomplete="off" placeholder="销售出库单是否报检" />
        </a-form-model-item>
        <a-form-model-item label="设备字表id" prop="iEqDID">
          <a-input v-model="entity.iEqDID" autocomplete="off" placeholder="设备字表id" />
        </a-form-model-item>
        <a-form-model-item label="预留升级问题" prop="bLPUseFree">
          <a-input v-model="entity.bLPUseFree" autocomplete="off" placeholder="预留升级问题" />
        </a-form-model-item>
        <a-form-model-item label="行号" prop="iRSRowNO">
          <a-input v-model="entity.iRSRowNO" autocomplete="off" placeholder="行号" />
        </a-form-model-item>
        <a-form-model-item label="ioritrackid" prop="iOriTrackID">
          <a-input v-model="entity.iOriTrackID" autocomplete="off" placeholder="ioritrackid" />
        </a-form-model-item>
        <a-form-model-item label="原始入库单类型" prop="coritracktype">
          <a-input v-model="entity.coritracktype" autocomplete="off" placeholder="原始入库单类型" />
        </a-form-model-item>
        <a-form-model-item label="表体记账人" prop="cbaccounter">
          <a-input v-model="entity.cbaccounter" autocomplete="off" placeholder="表体记账人" />
        </a-form-model-item>
        <a-form-model-item label="表体记账日期" prop="dbKeepDate">
          <a-input v-model="entity.dbKeepDate" autocomplete="off" placeholder="表体记账日期" />
        </a-form-model-item>
        <a-form-model-item label="单据是否核算" prop="bCosting">
          <a-input v-model="entity.bCosting" autocomplete="off" placeholder="单据是否核算" />
        </a-form-model-item>
        <a-form-model-item label="代管消耗标识" prop="bVMIUsed">
          <a-input v-model="entity.bVMIUsed" autocomplete="off" placeholder="代管消耗标识" />
        </a-form-model-item>
        <a-form-model-item label="代管结算数量" prop="iVMISettleQuantity">
          <a-input v-model="entity.iVMISettleQuantity" autocomplete="off" placeholder="代管结算数量" />
        </a-form-model-item>
        <a-form-model-item label="代管结算件数" prop="iVMISettleNum">
          <a-input v-model="entity.iVMISettleNum" autocomplete="off" placeholder="代管结算件数" />
        </a-form-model-item>
        <a-form-model-item label="代管商编码" prop="cvmivencode">
          <a-input v-model="entity.cvmivencode" autocomplete="off" placeholder="代管商编码" />
        </a-form-model-item>
        <a-form-model-item label="序列号数量" prop="iInvSNCount">
          <a-input v-model="entity.iInvSNCount" autocomplete="off" placeholder="序列号数量" />
        </a-form-model-item>
        <a-form-model-item label="库管员编码" prop="cwhpersoncode">
          <a-input v-model="entity.cwhpersoncode" autocomplete="off" placeholder="库管员编码" />
        </a-form-model-item>
        <a-form-model-item label="库管员名称" prop="cwhpersonname">
          <a-input v-model="entity.cwhpersonname" autocomplete="off" placeholder="库管员名称" />
        </a-form-model-item>
        <a-form-model-item label="服务单据id" prop="cserviceoid">
          <a-input v-model="entity.cserviceoid" autocomplete="off" placeholder="服务单据id" />
        </a-form-model-item>
        <a-form-model-item label="服务单id" prop="cbserviceoid">
          <a-input v-model="entity.cbserviceoid" autocomplete="off" placeholder="服务单id" />
        </a-form-model-item>
        <a-form-model-item label="换算率" prop="iinvexchrate">
          <a-input v-model="entity.iinvexchrate" autocomplete="off" placeholder="换算率" />
        </a-form-model-item>
        <a-form-model-item label="发货单号" prop="cbdlcode">
          <a-input v-model="entity.cbdlcode" autocomplete="off" placeholder="发货单号" />
        </a-form-model-item>
        <a-form-model-item label="corufts" prop="corufts">
          <a-input v-model="entity.corufts" autocomplete="off" placeholder="corufts" />
        </a-form-model-item>
        <a-form-model-item label="合同GUID" prop="strContractGUID">
          <a-input v-model="entity.strContractGUID" autocomplete="off" placeholder="合同GUID" />
        </a-form-model-item>
        <a-form-model-item label="有效期推算方式" prop="iExpiratDateCalcu">
          <a-input v-model="entity.iExpiratDateCalcu" autocomplete="off" placeholder="有效期推算方式" />
        </a-form-model-item>
        <a-form-model-item label="有效期至" prop="cExpirationdate">
          <a-input v-model="entity.cExpirationdate" autocomplete="off" placeholder="有效期至" />
        </a-form-model-item>
        <a-form-model-item label="有效期计算项" prop="dExpirationdate">
          <a-input v-model="entity.dExpirationdate" autocomplete="off" placeholder="有效期计算项" />
        </a-form-model-item>
        <a-form-model-item label="手册号" prop="cciqbookcode">
          <a-input v-model="entity.cciqbookcode" autocomplete="off" placeholder="手册号" />
        </a-form-model-item>
        <a-form-model-item label="累计保税处理抽取数量" prop="iBondedSumQty">
          <a-input v-model="entity.iBondedSumQty" autocomplete="off" placeholder="累计保税处理抽取数量" />
        </a-form-model-item>
        <a-form-model-item label="库户存货编码" prop="ccusinvcode">
          <a-input v-model="entity.ccusinvcode" autocomplete="off" placeholder="库户存货编码" />
        </a-form-model-item>
        <a-form-model-item label="客户存货名称" prop="ccusinvname">
          <a-input v-model="entity.ccusinvname" autocomplete="off" placeholder="客户存货名称" />
        </a-form-model-item>
        <a-form-model-item label="订单子表id" prop="iorderdid">
          <a-input v-model="entity.iorderdid" autocomplete="off" placeholder="订单子表id" />
        </a-form-model-item>
        <a-form-model-item label="订单类型" prop="iordertype">
          <a-input v-model="entity.iordertype" autocomplete="off" placeholder="订单类型" />
        </a-form-model-item>
        <a-form-model-item label="订单号" prop="iordercode">
          <a-input v-model="entity.iordercode" autocomplete="off" placeholder="订单号" />
        </a-form-model-item>
        <a-form-model-item label="销售订单行号" prop="iorderseq">
          <a-input v-model="entity.iorderseq" autocomplete="off" placeholder="销售订单行号" />
        </a-form-model-item>
        <a-form-model-item label="pe需求id" prop="ipesodid">
          <a-input v-model="entity.ipesodid" autocomplete="off" placeholder="pe需求id" />
        </a-form-model-item>
        <a-form-model-item label="pe需求类型" prop="ipesotype">
          <a-input v-model="entity.ipesotype" autocomplete="off" placeholder="pe需求类型" />
        </a-form-model-item>
        <a-form-model-item label="pe件需求跟踪号" prop="cpesocode">
          <a-input v-model="entity.cpesocode" autocomplete="off" placeholder="pe件需求跟踪号" />
        </a-form-model-item>
        <a-form-model-item label="pe需求行号" prop="ipesoseq">
          <a-input v-model="entity.ipesoseq" autocomplete="off" placeholder="pe需求行号" />
        </a-form-model-item>
        <a-form-model-item label="销售订单子表ID" prop="isodid">
          <a-input v-model="entity.isodid" autocomplete="off" placeholder="销售订单子表ID" />
        </a-form-model-item>
        <a-form-model-item label="订单类型" prop="isotype">
          <a-input v-model="entity.isotype" autocomplete="off" placeholder="订单类型" />
        </a-form-model-item>
        <a-form-model-item label="销售订单号" prop="csocode">
          <a-input v-model="entity.csocode" autocomplete="off" placeholder="销售订单号" />
        </a-form-model-item>
        <a-form-model-item label="销售订单行号" prop="isoseq">
          <a-input v-model="entity.isoseq" autocomplete="off" placeholder="销售订单行号" />
        </a-form-model-item>
        <a-form-model-item label="属性1" prop="cBatchProperty1">
          <a-input v-model="entity.cBatchProperty1" autocomplete="off" placeholder="属性1" />
        </a-form-model-item>
        <a-form-model-item label="属性2" prop="cBatchProperty2">
          <a-input v-model="entity.cBatchProperty2" autocomplete="off" placeholder="属性2" />
        </a-form-model-item>
        <a-form-model-item label="属性3" prop="cBatchProperty3">
          <a-input v-model="entity.cBatchProperty3" autocomplete="off" placeholder="属性3" />
        </a-form-model-item>
        <a-form-model-item label="属性4" prop="cBatchProperty4">
          <a-input v-model="entity.cBatchProperty4" autocomplete="off" placeholder="属性4" />
        </a-form-model-item>
        <a-form-model-item label="属性5" prop="cBatchProperty5">
          <a-input v-model="entity.cBatchProperty5" autocomplete="off" placeholder="属性5" />
        </a-form-model-item>
        <a-form-model-item label="属性6" prop="cBatchProperty6">
          <a-input v-model="entity.cBatchProperty6" autocomplete="off" placeholder="属性6" />
        </a-form-model-item>
        <a-form-model-item label="属性7" prop="cBatchProperty7">
          <a-input v-model="entity.cBatchProperty7" autocomplete="off" placeholder="属性7" />
        </a-form-model-item>
        <a-form-model-item label="属性8" prop="cBatchProperty8">
          <a-input v-model="entity.cBatchProperty8" autocomplete="off" placeholder="属性8" />
        </a-form-model-item>
        <a-form-model-item label="属性9" prop="cBatchProperty9">
          <a-input v-model="entity.cBatchProperty9" autocomplete="off" placeholder="属性9" />
        </a-form-model-item>
        <a-form-model-item label="属性10" prop="cBatchProperty10">
          <a-input v-model="entity.cBatchProperty10" autocomplete="off" placeholder="属性10" />
        </a-form-model-item>
        <a-form-model-item label="表体备注" prop="cbMemo">
          <a-input v-model="entity.cbMemo" autocomplete="off" placeholder="表体备注" />
        </a-form-model-item>
        <a-form-model-item label="单据体行号" prop="irowno">
          <a-input v-model="entity.irowno" autocomplete="off" placeholder="单据体行号" />
        </a-form-model-item>
        <a-form-model-item label="行唯一ID" prop="strowguid">
          <a-input v-model="entity.strowguid" autocomplete="off" placeholder="行唯一ID" />
        </a-form-model-item>
        <a-form-model-item label="行时间戳" prop="rowufts">
          <a-input v-model="entity.rowufts" autocomplete="off" placeholder="行时间戳" />
        </a-form-model-item>
        <a-form-model-item label="卸载前消抵数量" prop="ipreuseqty">
          <a-input v-model="entity.ipreuseqty" autocomplete="off" placeholder="卸载前消抵数量" />
        </a-form-model-item>
        <a-form-model-item label="卸载前消抵件数" prop="ipreuseinum">
          <a-input v-model="entity.ipreuseinum" autocomplete="off" placeholder="卸载前消抵件数" />
        </a-form-model-item>
        <a-form-model-item label="借出还回单子表id" prop="iDebitIDs">
          <a-input v-model="entity.iDebitIDs" autocomplete="off" placeholder="借出还回单子表id" />
        </a-form-model-item>
        <a-form-model-item label="已开票数量" prop="fsettleqty">
          <a-input v-model="entity.fsettleqty" autocomplete="off" placeholder="已开票数量" />
        </a-form-model-item>
        <a-form-model-item label="未开票退货数量" prop="fretqtywkp">
          <a-input v-model="entity.fretqtywkp" autocomplete="off" placeholder="未开票退货数量" />
        </a-form-model-item>
        <a-form-model-item label="已开票退货数量" prop="fretqtyykp">
          <a-input v-model="entity.fretqtyykp" autocomplete="off" placeholder="已开票退货数量" />
        </a-form-model-item>
        <a-form-model-item label="单据行条码" prop="cbsysbarcode">
          <a-input v-model="entity.cbsysbarcode" autocomplete="off" placeholder="单据行条码" />
        </a-form-model-item>
        <a-form-model-item label="是否存货核算开票" prop="bIAcreatebill">
          <a-input v-model="entity.bIAcreatebill" autocomplete="off" placeholder="是否存货核算开票" />
        </a-form-model-item>
        <a-form-model-item label="是否销售出库开票" prop="bsaleoutcreatebill">
          <a-input v-model="entity.bsaleoutcreatebill" autocomplete="off" placeholder="是否销售出库开票" />
        </a-form-model-item>
        <a-form-model-item label="出库单子表标识" prop="isaleoutid">
          <a-input v-model="entity.isaleoutid" autocomplete="off" placeholder="出库单子表标识" />
        </a-form-model-item>
        <a-form-model-item label="是否需要开票" prop="bneedbill">
          <a-input v-model="entity.bneedbill" autocomplete="off" placeholder="是否需要开票" />
        </a-form-model-item>
        <a-form-model-item label="是否指定货位" prop="iposflag">
          <a-input v-model="entity.iposflag" autocomplete="off" placeholder="是否指定货位" />
        </a-form-model-item>
        <a-form-model-item label="无" prop="body_outid">
          <a-input v-model="entity.body_outid" autocomplete="off" placeholder="无" />
        </a-form-model-item>
      </a-form-model>
    </a-spin>
  </a-modal>
</template>

<script>
export default {
  props: {
    parentObj: Object
  },
  data () {
    return {
      layout: {
        labelCol: { span: 5 },
        wrapperCol: { span: 18 }
      },
      visible: false,
      loading: false,
      entity: {},
      rules: {},
      title: ''
    }
  },
  methods: {
    init () {
      this.visible = true
      this.entity = {}
      this.$nextTick(() => {
        this.$refs['form'].clearValidate()
      })
    },
    openForm (id, title) {
      this.init()
      this.title = title
      if (id) {
        this.loading = true
        this.$http.post('/OrderManagement/rdrecords32/GetTheData', { id: id }).then(resJson => {
          this.loading = false

          this.entity = resJson.Data
        })
      }
    },
    handleSubmit () {
      this.$refs['form'].validate(valid => {
        if (!valid) {
          return
        }
        this.loading = true
        this.$http.post('/OrderManagement/rdrecords32/SaveData', this.entity).then(resJson => {
          this.loading = false

          if (resJson.Success) {
            this.$message.success('操作成功!')
            this.visible = false

            this.parentObj.getDataList()
          } else {
            this.$message.error(resJson.Msg)
          }
        })
      })
    }
  }
}
</script>
